package Day07.Demo01;

import java.util.Scanner;

/**
 * @author 韩映晖
 * @version 1.0
 * @date 2022/2/4 17:26
 */
public class Demo01Scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数据：");
        int num = sc.nextInt();
        System.out.println("输入的数据为："+num);
        System.out.println("请再次输入：");
        String str = sc.next();
        System.out.println("输入的字符串是"+str);
    }
}
